package cn.hp.service.coupon;

import cn.hp.pojo.TblCoupon;
import cn.hp.pojo.TblCouponSendInfo;
import cn.hp.pojo.TblUserCoupon;
import cn.hp.util.ResponseData;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.List;

public interface CouponService {
    ResponseData findAllByPage(int page, int limit, String couponName);

    ResponseData addCoupon(TblCoupon tblCoupon);

    ResponseData findAllSendByPage(int page, int limit);

    ResponseData add(MultipartFile file, TblCouponSendInfo tblCouponSendInfo, File filePath);

    List<TblCouponSendInfo> findAllSendListCouponSendName();

    void addUserCoupon(TblUserCoupon tblUserCoupon);

    int findCountCoupon(Integer couponId, Integer id);
}
